#include<fstream>
#include<iostream>

int main()
{
	int a[5];
	for(int i=1; i<=4; ++i)
		std::cin >> a[i];

	std::ofstream out;
	out.open("d:\\source.txt");

	for(int i=1; i<=4; ++i)
		out << a[i] << " ";

	out.close();

	std::ifstream in;
	in.open("d:\\source.txt");

	for(int i=1; i<=4; ++i)
		in >> a[i];

	in.close();

	for(int i=1; i<=4; ++i)
		a[i] = a[i] * 10 + a[i] / 10;

	out.open("d:\\destination.txt");
	for(int i=1; i<=4; ++i)
		out << a[i] << ", ";

	return 0;
}
